/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.account.domain;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author lzw
* @date 2025-04-24
**/
@Data
@TableName("account_aa03")
public class AccountAa03 implements Serializable {

    @TableId(value = "aaz153")
    @ApiModelProperty(value = "利率参数ID")
    private String aaz153;

    @NotBlank
    @ApiModelProperty(value = "利率名称")
    private String aaa032;

    @NotBlank
    @ApiModelProperty(value = "利率类型")
    private String aaa030;

    @NotNull
    @ApiModelProperty(value = "利率")
    private BigDecimal aaa031;

    @ApiModelProperty(value = "备注")
    private String aae013;

    @ApiModelProperty(value = "经办人")
    private String aae011;

    @ApiModelProperty(value = "经办时间")
    private BigDecimal aae036;

    @NotNull
    @ApiModelProperty(value = "开始日期")
    private Date aae041;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "终止日期")
    private Date aae042;

    @ApiModelProperty(value = "经办机构")
    private String aab359;

    public void copy(AccountAa03 source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
